#ifndef REMOTEFORM_H
#define REMOTEFORM_H

#include "models/databasemanager.h"
#include "public/VideoBase.h"
#include <QRadioButton>
#include <QWidget>

namespace Ui {
class RemoteForm;
}

class RemoteForm : public QWidget
{
    Q_OBJECT

public:
    explicit RemoteForm(QWidget *parent = nullptr);
    ~RemoteForm();
    void initVideoStyle();
protected:
    void showEvent(QShowEvent *event);
    void hideEvent(QHideEvent *event);
private slots:
    void onBtnIdClicked(int nId);
    void on_start_btn_clicked();

    void on_stop_btn_clicked();

private:
    Ui::RemoteForm *ui;
    QList<VideoInfo> m_listVideoInfo;
    QVector <VideoBase*> m_vtVideoWidget;
    QButtonGroup *m_pButtonGroup;
    QRadioButton *m_pRadioBtn;//隐藏界面的时候用于设置状态
};

#endif // REMOTEFORM_H
